package com.zhijian.medical.dao.local;

import com.zhijian.medical.entity.po.File;
import com.zhijian.medical.entity.vo.request.FileSearchVo;
import com.zhijian.medical.entity.vo.response.FileVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface FileMapper {
    int deleteByPrimaryKey(Long id);

    int insert(File record);

    int insertSelective(File record);

    File selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(File record);

    int updateByPrimaryKey(File record);

    int count(FileSearchVo fileSearchVo);

    List<FileVo> selectList(FileSearchVo fileSearchVo);

    FileVo selectVoById(Long id);

    /**
     * 批量新增
     *
     * @param entities
     * @return
     */
    int insertBatch(@Param("entities") List<File> entities);

    /**
     * 动态删除
     *
     * @param fileSearchVo
     * @return
     */
    void deleteByCondition(FileSearchVo fileSearchVo);
}